package com.brownalexis.application.enums;

/**
 * @Author: brownalexis
 * @Date: 2024/04/01 14:44
 * @Description:
 */
public enum ResponseCode {
    SUCCESS(200, "Success"),
    NOT_FOUND(404, "Not Found"),
    BAD_REQUEST(400, "Bad Request"),
    INTERNAL_SERVER_ERROR(500, "Internal Server Error");

    private final int code;
    private final String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}

